import {get, post, del, put} from "@/apis/http/request";
import {ICon} from "@/apis/model/system/IconModel";

/**
 * 得到菜单分页列表
 * @param params
 */
export const iconPage = (params: any) => post("/icon/page", params)

/**
 * 循环获取权限
 * @returns
 */
export const iconLoop = () => get("/icon/loopList")

/**
 * 删除数据
 * @param id
 * @returns
 */
export const deleteIconById = (id: number) => del("/icon/delete/"+ id)

/**
 * 新增数据
 * @param param
 */
export const insertIcon = (param: ICon) => post("/icon", param)

/**
 * 更新数据
 * @param param
 */
export const updateIcon = (param: ICon) => put("/icon", param)

